package com.lanyun.yebdemo.service;

import com.lanyun.yebdemo.bean.Admin;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lanyun.yebdemo.bean.RespBean;
import com.lanyun.yebdemo.bean.Role;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lanyun
 * @since 2022-03-19
 */
public interface IAdminService extends IService<Admin> {

    Admin getAdminByUserName(String username);

    List<Role> getRolesByAdminId(Integer adminId);

    RespBean login(String username, String password, String code, HttpServletRequest request);
}
